package com.supermap.dubbo.api.cloud.cust.menu;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author aqua
 * @desc
 * @date 2019年02月25 9:54
 * @email 1301584033@qq.com
 */
public class TreeNode implements Serializable {
    private Integer id;
    private Integer pId=0;
    private String name;
    private Boolean open=false;
    private String code;
    private Integer category;
    private Boolean checked=false;
    private Boolean isParent=false;
    List<TreeNode> treeNodes=new ArrayList<>();

    public List<TreeNode> getTreeNodes() {
        return treeNodes;
    }

    public void setTreeNodes(List<TreeNode> treeNodes) {
        this.treeNodes = treeNodes;
    }

    public Boolean getParent() {
        return isParent;
    }

    public void setParent(Boolean parent) {
        isParent = parent;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
        return pId;
    }

    public TreeNode setpId(Integer pId) {
        this.pId = pId;
        return this;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }
}
